package scenic.toolkit;

import scenic.toolkit.db.NodeArray;
import scenic.toolkit.db.Property;
import scenic.toolkit.db.Record;

public class ParagraphModel extends Record implements Model {
	private static Property<ParagraphStyle> styleProperty = new Property<ParagraphStyle>("style");
	private static Property<NodeArray<ElementModel>> elementsProperty = new Property<NodeArray<ElementModel>>("elements");
	
	public ParagraphModel() {
		setElements(new NodeArray<ElementModel>(null));
	}

	public ParagraphStyle getStyle() {
		return styleProperty.get(this);
	}

	public void setStyle(ParagraphStyle style) {
		styleProperty.set(this, style);
	}

	public NodeArray<ElementModel> getElements() {
		return elementsProperty.get(this);
	}

	public void setElements(NodeArray<ElementModel> elements) {
		elementsProperty.set(this, elements);
	}

}
